<?php

declare(strict_types=1);

namespace App\Marketing\Model;

use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $created_by 创建者
 * @property int $updated_by 更新者
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 * @property string $deleted_at 删除时间
 * @property string $remark 备注
 * @property string $event 事件
 * @property int $status 启用0否1是
 * @property int $account_type 入口类型
 * @property string $code 标识
 * @property array $object_id 数据id
 * @property array $config 配置
 */
class MarketingGradient extends MineModel
{
    use SoftDeletes;

    /**
     * The table associated with the model.
     */
    protected ?string $table = 'marketing_gradient';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'created_by', 'updated_by', 'created_at', 'updated_at', 'deleted_at', 'remark', 'event', 'status', 'account_type', 'code', 'object_id', 'config'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'status' => 'integer', 'account_type' => 'integer', 'object_id' => 'array', 'config' => 'array'];
}
